<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">

<script crossorigin="anonymous" integrity="sha384-AQhQSZGQWTMJhb/TdS7NWpCmOM/8lIEsaevSU5oZtt8pQKoa+uJL4A2WnQ0O5Zj2" src="https://lib.baomitu.com/jquery/3.5.0/jquery.js"></script>

<script type="text/javascript" >


$(function(){

 $.ajax({
             type:"GET",
             url: "/order",
         });	
});



var pay=function(){
	 $.ajax({
             type: "GET",
             url: "/pay",
             success: function(data){

             	window.location = data+'.html';
                  }
         });
}



</script>
</head>


<body>

<button type="button"   onclick="pay()">支付</button>

</body>

</html>
